home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / amos / AMOSList0993.lzh / AMOSLIST / 000260_amos-request@svcs1.digex.net_Mon Sep 27 21:54:55 1993.msg < prev    next >
Internet Message Format  |  1993-10-03  |  3KB

  1. Received: from nextsun.INS.CWRU.Edu by access.digex.net with SMTP id AA06559
  2.   (5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Mon, 27 Sep 1993 21:54:51 -0400
  3. Received: from svcs1.digex.net by nextsun.INS.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.5.2-freenet-gw)
  4.     id AA11295; Mon, 27 Sep 93 21:54:39 -0400 (from amos-request@svcs1.digex.net for mcox@access.digex.com)
  5. Received: by svcs1.digex.net id AA03722
  6.   (5.65c/IDA-1.4.4 for amos-list-out); Mon, 27 Sep 1993 21:37:30 -0400
  7. Received: from access.digex.net by svcs1.digex.net with SMTP id AA03718
  8.   (5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Mon, 27 Sep 1993 21:37:28 -0400
  9. Received: from vax.mbhs.edu by access.digex.net with SMTP id AA04341
  10.   (5.65c/IDA-1.4.4 for <amos-list@access.digex.net>); Mon, 27 Sep 1993 21:37:20 -0400
  11. Message-Id: <199309280137.AA04341@access.digex.net>
  12. Date: 27 Sep 93 21:23:00 EST
  13. From: "Andrew Church" <95ACHURCH@vax.mbhs.edu>
  14. Subject: Re: Bitplanes
  15. To: "amos-list" <amos-list@access.digex.net>
  16. Status: RO
  17.  
  18.   A little clarification here...
  19.  
  20. >In every bitplane, one bit represents one pixel, so a byte (8 bits)
  21. >of a bitplane would be 8 pixels across.
  22. >At it's simplest, with one bit plane wherever there's a set bit 
  23. >in the bitplane that pixel will be in color 1, a binary 0 in
  24. >one of the bits means color 0 at that pixel.
  25.  
  26.   This is right.  However...
  27.  
  28. >To get more colors the system adds up the bits of all the planes
  29. >at a certian pixel and that makes the color number.
  30. >Say at pixel A plane 1 is set to 0, plane 2 is set to 1, and plane
  31. >3 is set to 1, combining those will make the binary number %011
  32. >which is 6 in normal numbers, so at that pixel there would be
  33. >color 6.
  34.  
  35.   This is wrong -- you're numbering the planes backwards.  What you should
  36. have said is this:
  37.  
  38. Say at pixel A plane *2* is set to 0, plane *1* is set to 1, and plane
  39. *0* is set to 1, combining those...
  40.  
  41.   The plane number is the same as the bit number in the colour.  So plane 0
  42. corresponds to bit 0 (the least significant bit), plane 1 corresponds to bit
  43. 1, etc.
  44.  
  45.   You also don't know as much about binary as you seem to think you know.  The
  46. binary number 011 is equal to 3 in decimal (0*2^2 + 1*2^1 + 1*2^0 = 0+2+1 = 3).
  47.  
  48. >Now to change the colors of bobs you can tell the blitter NOT
  49. >to draw certian planes, so if in the above example you told the
  50. >blitter NOT to draw plane 2 the color would be %001, or 4.
  51.                                                       ^^^^ NO!!! 1, not 4!!!
  52.  
  53.   You'd tell it not to draw plane 1 in order to get %001 from the above case.
  54. That is, you'd use "Set Bob N,,%11111101," where N is your bob number.
  55.  
  56.   --Andy Church
  57.